<!--link rel="stylesheet" type="text/css" href="<?php echo base_url('skin/css/admin.css');?>" /-->



<div class="tianggelogincont" style="width: auto;">
    <div class="tianggeloginheadercont"></div><br /><br />
    <?php if (0 && $fmessage): ?>
        <?php if (is_array($fmessage)):foreach($fmessage as $msg): ?>
        <span class="wauto"><?php echo $msg; ?></span>
        <?php endforeach; ?>
        <?php else: ?>
            <span class="wauto"><?php echo $fmessage; ?></span>
        <?php endif; ?>
    <?php endif; ?>

    <?php if (isset($success)):?>
        <?php if (isset($msgs)): ?>
            <div class="wmessage">
            <?php if (is_array($msgs)):foreach($msgs as $msg): ?>
            <span class="wauto"><?php echo $msg; ?></span><br />
            <?php endforeach; ?>
            <?php else: ?>
                <span><?php echo $msgs; ?></span>
            <?php endif; ?>
            </div>
        <?php endif; ?>
        <p><a href="<?php echo site_url($this->router->fetch_class().'/login');?>">Go back to login screen</a></p>
        <?php if(0 && isset($viewreset)): /* Disable since follow the message */?>
            <form id="frm_resetpass" method="POST" action="<?php echo site_url($this->router->fetch_class().'/resetpassword')?>">
                <input type="text" name="account_name" value="<?php echo (isset($account_name))?$account_name:'';?>" class="tianggelogintextinput"  placeholder="Enter username"/><br /><br />
                <input type="text" name="token" value="<?php echo (isset($token))?$token:'';?>" class="tianggelogintextinput" placeholder="Enter token key"/><br /><br />

                <input type="password" name="password" value="" class="tianggelogintextinput" id="password" placeholder="Enter password" /> <br /><br />
                <br /><br />
				
                <input type="submit" value="Submit" class="buttonBlue" />
            </form>
        <?php endif; ?>
    <?php else: ?>
    <form id="frm_resetpass" method="post" action="<?php echo site_url($this->router->fetch_class().'/resetpassword')?>">
        <span class="wauto">A new password will be sent to your registered email address.</span>
        <div class="margtopyv30 height41tiangge">

        <input type="text" name="account_name" class="tianggelogintextinput<?php echo isset($msgs)?' error':'';?>"  id="username"  placeholder="Enter your registered username" style="font-size:14px;" />

        </div>
        <div class="error-text" id="account_name" style="display:<?php echo isset($msgs)?'block':'none';?>;"><?php echo isset($msgs)?(is_array($msgs)?$msgs[0]:$msgs): 'Username is a required field.';?></div>
        <div class="margtopyv30">
            <input style="border:0px" class="buttonBlue" type="submit" name="submit" value="Submit" />
        </div>
        <p>Note: You can only reset your password<br />3 times per day</p>
    </form>
    <p><a href="<?php echo site_url($this->router->fetch_class().'/login');?>">Login with a different account</a></p>
    <?php endif; ?>    
    <div class="clear"></div>
</div>


